package br.com.playonline.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "carrinho_bolao")
public class CarrinhoBolao implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	private static final long serialVersionUID = 1L;

	private Integer qtdCota;
	private Date dtCompra;
	private Double totalPremio;

	@ManyToOne
	@JoinColumn(name = "bolao_id")
	Bolao bolao;

	@ManyToOne
	@JoinColumn(name = "carrinho_id")
	Carrinho carrinho;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getQtdCota() {
		return qtdCota;
	}

	public void setQtdCota(Integer qtdCota) {
		this.qtdCota = qtdCota;
	}

	public Bolao getBolao() {
		return bolao;
	}

	public void setBolao(Bolao bolao) {
		this.bolao = bolao;
	}

	public Carrinho getCarrinho() {
		return carrinho;
	}

	public void setCarrinho(Carrinho carrinho) {
		this.carrinho = carrinho;
	}

	public Date getDtCompra() {
		return dtCompra;
	}

	public void setDtCompra(Date dtCompra) {
		this.dtCompra = dtCompra;
	}

	public Double getTotalPremio() {
		return totalPremio;
	}

	public void setTotalPremio(Double totalPremio) {
		this.totalPremio = totalPremio;
	}

}
